//////////////////////////////////////////////////////////////////////////
#include "Application.hpp"
#include <Config/Config.hpp>
#include <TweakUtils/TweakUtils.hpp>
#include <FileSystem/FileSystem.hpp>

#include "Joystick.hpp"


//////////////////////////////////////////////////////////////////////////
XO::Application::Application( const char* argv, const std::string& companyName, const std::string& gameName )
:	Application::WindowedApp( argv, companyName, gameName )
{
}

XO::Application::~Application()
{
}


bool XO::Application::Initialize()
{
	// Register various debug panels.
	DEVBUILD(
		WindowManager().RegisterPanel( new TweakUtils::Panel( XO::Joystick::DebugPanel() ) );
	)

	return _RunGameScript();
}


bool XO::Application::Shutdown()
{
	return true;
}
